package it.asvp.asvp_portal.service.services;

import it.asvp.asvp_portal.data.entity.domain.Convention;

import java.util.List;

import org.springframework.security.core.userdetails.UserDetails;

public interface ConventionService {

	public Long createConvention(UserDetails userDetails,Convention transientConvention) throws Exception;
	
	public void updateConvention(UserDetails userDetails, Long idConventionToUpdate, Convention transientConvention) throws Exception;
	
	public void deleteConvention(UserDetails userDetails, Long idConventionToDelete) throws Exception;
	
	public List<Convention> getAllConventions();
	
	public List<Convention> getByActive(boolean isActive);
	
	public Convention getById(Long idConvention) throws Exception;
}
